﻿<%@ Control Language="C#" %>
<%@ Import Namespace="Hidistro.Core" %>
<%@ Import Namespace="Hidistro.UI.SaleSystem.Tags" %>
<asp:Repeater ID="PList" runat="server">
    <ItemTemplate>
        <div class="submitpage-left-2">
            <ul>
                <li class="left-1"><a href="<%# Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") }) %>">&nbsp;<img class="itempic J_ItemImg" src="<%# Globals.GetImgUrl(Eval("ThumbnailUrl100").ToString()) %>"></a></li>
                <li class="left-2"><a style="display: inline-block; height: 40px; overflow: hidden;" href="<%# Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") }) %>"><%# Eval("Name")%></a>
                    <div style="color: #999;">
                        <asp:Literal ID="litSKUContent" runat="server" Text='<%# Eval("SKUContent") %>'></asp:Literal>
                    </div>
                </li>
                <li class="left-3">￥<%# ((decimal)Eval("MemberPrice")).ToString("F0") %></li>
                <li class="left-4"><%# Eval("Quantity")%></li>
                <li class="left-5"><a href="javascript:wnxd_notbuy('<%# Eval("SkuId") %>')">&nbsp;<img src="http://image.juseshop.com/images/newindex/jsym2.png"></a></li>
            </ul>
        </div>
    </ItemTemplate>
</asp:Repeater>
<script type="text/javascript">
    function wnxd_notbuy(SkuId) {
        var sea = location.search;
        if (sea.indexOf("productSku") != -1) return false;
        var reg = /(.*?)NotBuy=\[(.*?)\]/.exec(sea),
            url = location.protocol + "//" + location.host + location.pathname;
        if (reg == null) {
            if (sea == "") sea = "?";
            else sea += "&";
            sea += "NotBuy=[%22" + SkuId + "%22]";
        }
        else {
            if (reg[2] != "") {
                SkuId = reg[2] + ",%22" + SkuId + "%22";
            }
            else {
                SkuId = "%22" + SkuId + "%22";
            }
            sea = reg[1] + "NotBuy=[" + SkuId + "]";
        }
        location.href = url + sea;
    }
</script>
